package me.macd.mindoc.model;

import java.util.Date;

public class MemberToken {
    private Integer tokenId;

    private Integer memberId;

    private String token;

    private String email;

    private Boolean isValid;

    private Date validTime;

    private Date sendTime;

    public MemberToken(Integer tokenId, Integer memberId, String token, String email, Boolean isValid, Date validTime, Date sendTime) {
        this.tokenId = tokenId;
        this.memberId = memberId;
        this.token = token;
        this.email = email;
        this.isValid = isValid;
        this.validTime = validTime;
        this.sendTime = sendTime;
    }

    public MemberToken() {
        super();
    }

    public Integer getTokenId() {
        return tokenId;
    }

    public void setTokenId(Integer tokenId) {
        this.tokenId = tokenId;
    }

    public Integer getMemberId() {
        return memberId;
    }

    public void setMemberId(Integer memberId) {
        this.memberId = memberId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token == null ? null : token.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public Boolean getIsValid() {
        return isValid;
    }

    public void setIsValid(Boolean isValid) {
        this.isValid = isValid;
    }

    public Date getValidTime() {
        return validTime;
    }

    public void setValidTime(Date validTime) {
        this.validTime = validTime;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }
}